package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsOutboundmanagementMapper;
import com.ruoyi.system.domain.DsOutboundmanagement;
import com.ruoyi.system.service.IDsOutboundmanagementService;

/**
 * 出库管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class DsOutboundmanagementServiceImpl implements IDsOutboundmanagementService 
{
    @Autowired
    private DsOutboundmanagementMapper dsOutboundmanagementMapper;

    /**
     * 查询出库管理
     * 
     * @param outboundId 出库管理主键
     * @return 出库管理
     */
    @Override
    public DsOutboundmanagement selectDsOutboundmanagementByOutboundId(Long outboundId)
    {
        return dsOutboundmanagementMapper.selectDsOutboundmanagementByOutboundId(outboundId);
    }

    /**
     * 查询出库管理列表
     * 
     * @param dsOutboundmanagement 出库管理
     * @return 出库管理
     */
    @Override
    public List<DsOutboundmanagement> selectDsOutboundmanagementList(DsOutboundmanagement dsOutboundmanagement)
    {
        return dsOutboundmanagementMapper.selectDsOutboundmanagementList(dsOutboundmanagement);
    }

    /**
     * 新增出库管理
     * 
     * @param dsOutboundmanagement 出库管理
     * @return 结果
     */
    @Override
    public int insertDsOutboundmanagement(DsOutboundmanagement dsOutboundmanagement)
    {
        return dsOutboundmanagementMapper.insertDsOutboundmanagement(dsOutboundmanagement);
    }

    /**
     * 修改出库管理
     * 
     * @param dsOutboundmanagement 出库管理
     * @return 结果
     */
    @Override
    public int updateDsOutboundmanagement(DsOutboundmanagement dsOutboundmanagement)
    {
        return dsOutboundmanagementMapper.updateDsOutboundmanagement(dsOutboundmanagement);
    }

    /**
     * 批量删除出库管理
     * 
     * @param outboundIds 需要删除的出库管理主键
     * @return 结果
     */
    @Override
    public int deleteDsOutboundmanagementByOutboundIds(Long[] outboundIds)
    {
        return dsOutboundmanagementMapper.deleteDsOutboundmanagementByOutboundIds(outboundIds);
    }

    /**
     * 删除出库管理信息
     * 
     * @param outboundId 出库管理主键
     * @return 结果
     */
    @Override
    public int deleteDsOutboundmanagementByOutboundId(Long outboundId)
    {
        return dsOutboundmanagementMapper.deleteDsOutboundmanagementByOutboundId(outboundId);
    }
}
